package com.qyc.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;

import lombok.Data;

/**
 * 
 * @TableName manager_batch
 */
@TableName(value ="manager_batch")
public class Batch implements Serializable {
    /**
     * 批次编号
     */
    @TableId
    private String bSerialId;

    /**
     * 批次描述
     */
    private String bDesc;

    /**
     * 检疫状态,未检疫已检疫
     */
    private String bQuarantine;

    /**
     * 检疫合格状态,合格不合格
     */
    private String bQualified;

    /**
     * 批次时间
     */
    private Date bTime;

    public Batch() {
    }

    public Batch(String bSerialId, String bDesc, String bQuarantine, String bQualified, Date bTime) {
        this.bSerialId = bSerialId;
        this.bDesc = bDesc;
        this.bQuarantine = bQuarantine;
        this.bQualified = bQualified;
        this.bTime = bTime;
    }

    public String getbSerialId() {
        return bSerialId;
    }

    public void setbSerialId(String bSerialId) {
        this.bSerialId = bSerialId;
    }

    public String getbDesc() {
        return bDesc;
    }

    public void setbDesc(String bDesc) {
        this.bDesc = bDesc;
    }

    public String getbQuarantine() {
        return bQuarantine;
    }

    public void setbQuarantine(String bQuarantine) {
        this.bQuarantine = bQuarantine;
    }

    public String getbQualified() {
        return bQualified;
    }

    public void setbQualified(String bQualified) {
        this.bQualified = bQualified;
    }

    public Date getbTime() {
        return bTime;
    }

    public void setbTime(Date bTime) {
        this.bTime = bTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Batch batch = (Batch) o;
        return Objects.equals(bSerialId, batch.bSerialId) && Objects.equals(bDesc, batch.bDesc) && Objects.equals(bQuarantine, batch.bQuarantine) && Objects.equals(bQualified, batch.bQualified) && Objects.equals(bTime, batch.bTime);
    }

    @Override
    public int hashCode() {
        return Objects.hash(bSerialId, bDesc, bQuarantine, bQualified, bTime);
    }

    @Override
    public String toString() {
        return "Batch{" +
                "bSerialId='" + bSerialId + '\'' +
                ", bDesc='" + bDesc + '\'' +
                ", bQuarantine='" + bQuarantine + '\'' +
                ", bQualified='" + bQualified + '\'' +
                ", bTime=" + bTime +
                '}';
    }

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}